﻿@using Classified.Web.Models
@model Classified.Domain.Entities.QueuedEmail
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="thumbnail white-bg">
    @using (Html.BeginForm("ReplyAds", "ClassifiedAds", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
       @Html.Hidden("ClassifiedId")
            @Html.HiddenFor(model => model.To)
            @Html.HiddenFor(model => model.CreatedOnUtc)
            <div class="clearfix">
                @Html.LabelFor(model => model.Body)
                <div class="input">
                    @Html.TextAreaFor(model => model.Body)
                    @Html.ValidationMessageFor(model => model.Body)
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(model => model.FromName)
                <div class="input">
                    @Html.EditorFor(model => model.FromName)
                    @Html.ValidationMessageFor(model => model.FromName)
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(model => model.From)
                <div class="input long">
                    @Html.EditorFor(model => model.From)
                    @Html.ValidationMessageFor(model => model.From)
                </div>
            </div>
             @Html.Partial("_Captcha", new Captcha())
            @Html.Partial("_InvisibleCaptcha", new InvisibleCaptcha())
            <div class="form-actions">
                <input type="submit" class="btn btn-info" value="Send" />
            </div>
      
    }
</div>
